<?php

use Illuminate\Database\Seeder;
use App\User;
use Illuminate\Contracts\Auth\Registrar;

class AdminUser extends Seeder
{
    protected $obj_reg;

    public function __construct(User $user) {
        $this->obj_reg = $user;
    }

    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        // 初始化用户
        $userData['name'] = '关越';
        $userData['email'] = 'yueguan2@creditease.cn';
        $userData['password'] = bcrypt('guanYUE@0624');
        $this->obj_reg->create($userData);

        $userData['name'] = '小音';
        $userData['email'] = 'yinyin@creditease.cn';
        $userData['password'] = bcrypt('love123456');
        $this->obj_reg->create($userData);
    }
}
